local Lua__bzdl = fk.CreateSkill {

    name = "Lua__bzdl",
  
  }
  
  Fk:loadTranslationTable{
    
      ["Lua__bzdl"] = "爆砖大力",
      [":Lua__bzdl"] = "回合开始时，你可以视为使用一张【砖】。【砖】对你无效。",
      ["#Lua__bzdl-use"] = "爆砖大力：你可视为使用一张【砖】。",
  }
  

Lua__bzdl:addEffect(fk.TurnStart, {
    can_trigger = function(self, event, target, player, data)
      return player:hasSkill(Lua__bzdl.name) and target == player
    end,
    on_cost = function (self, event, target, player, data)
        local room = player.room
        local use = room:askToUseVirtualCard(target, {
          name = "n_brick",
          skill_name = Lua__bzdl.name,
          prompt = "#Lua__bzdl-use",
          cancelable = true,
          card_filter = {
            n = 0,
            pattern = ".",
          },
          skip = true,
        })
        if use then
            event:setCostData(self, {extra_data = use})
            return true
        end
      end,
      on_use = function (self, event, target, player, data)
         local room = player.room
         player.room:useCard(event:getCostData(self).extra_data)
      end,
})

Lua__bzdl:addEffect(fk.PreCardEffect, {
    is_delay_effect = true,
    can_trigger = function(self, event, target, player, data)
        return player:hasSkill(Lua__bzdl.name) and data.card.trueName == "n_brick" and 
               player == data.to 
    end,
    on_use = function(self, event, target, player, data)
        local room = player.room
        data.nullified = true
    end,
})

  
return Lua__bzdl